get lastModifiedTime() without opening module

Hello,

is there a way of getting the lastModifiedTime() without opening the module; I want date and time of last modification of said module? Thank you.

-Jim


EHcnck - Wed Dec 04 01:47:55 EST 2013

Re: get lastModifiedTime() without opening module
llandale - Thu Dec 05 14:29:20 EST 2013

Don't see how.  The following "should" have worked but doesn't.  Goto your folder, change the name of the module and run this:

  • string NameMod = "MyModule Name"
  •  
  • ModuleVersion mv = moduleVersion (module NameMod)
  • ModuleProperties mp
  • getProperties (mv, mp)
  • Date dat1 = mp."Last Modified On"
  • Date dat2 = dateAndTime(dat1)
  • print dat1 "\t" dat2 "\n"

I notice this command requires the module to be open.

  • Date     lastModifiedTime(Module)

-Louie

Re: get lastModifiedTime() without opening module
GregM_dxler - Wed Dec 11 09:50:58 EST 2013

llandale - Thu Dec 05 14:29:20 EST 2013

Don't see how.  The following "should" have worked but doesn't.  Goto your folder, change the name of the module and run this:

  • string NameMod = "MyModule Name"
  •  
  • ModuleVersion mv = moduleVersion (module NameMod)
  • ModuleProperties mp
  • getProperties (mv, mp)
  • Date dat1 = mp."Last Modified On"
  • Date dat2 = dateAndTime(dat1)
  • print dat1 "\t" dat2 "\n"

I notice this command requires the module to be open.

  • Date     lastModifiedTime(Module)

-Louie

Hi,

The printout I get of the dateAndTime has the time set to 00:00:00.  The date appears right.

LastModifiedTime gives the right time, but as Louie mentioned, the module needs to be open.

Greg

Re: get lastModifiedTime() without opening module
rmoskwa - Wed Jan 29 15:29:37 EST 2014

I use this to get the last modified on date

//Show Last Modified On
/*
Shows the Last Modified On list of files in a directory.
*/


Folder f = current
 
ModuleVersion mv
ModuleProperties mp
string str
 
Item itm
 
for itm in f do
{
    mv = moduleVersion(module(fullName(itm)))
    str = getProperties(mv, mp)
 
    print name(itm) ":" mp."Last Modified On" "\n"
}